package com.zengjianjun.hive.demo.service.mysql.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zengjianjun.hive.demo.entity.mysql.User;
import com.zengjianjun.hive.demo.mapper.mysql.UserMapper;
import com.zengjianjun.hive.demo.service.mysql.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zengjianjun
 */
@Slf4j
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Override
    public List<User> findList() {
        return this.baseMapper.selectList(new QueryWrapper<>());
    }
}
